Optimal. Leaf size=169 \[ \frac{2 \sqrt{2} \sqrt{c} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x^{n/2}}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{n \sqrt{b^2-4 a c} \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{2 \sqrt{2} \sqrt{c} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x^{n/2}}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{n \sqrt{b^2-4 a c} \sqrt{\sqrt{b^2-4 a c}+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.191817, antiderivative size = 169, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {1381, 1093, 205} \[ \frac{2 \sqrt{2} \sqrt{c} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x^{n/2}}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{n \sqrt{b^2-4 a c} \sqrt{b-\sqrt{b^2-4 a c}}}-\frac{2 \sqrt{2} \sqrt{c} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x^{n/2}}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{n \sqrt{b^2-4 a c} \sqrt{\sqrt{b^2-4 a c}+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1381
Rule 1093
Rule 205
Rubi steps
\begin{align*} \int \frac{x^{-1+\frac{n}{2}}}{a+b x^n+c x^{2 n}} \, dx &=\frac{2 \operatorname{Subst}\left (\int \frac{1}{a+b x^2+c x^4} \, dx,x,x^{n/2}\right )}{n}\\ &=\frac{(2 c) \operatorname{Subst}\left (\int \frac{1}{\frac{b}{2}-\frac{1}{2} \sqrt{b^2-4 a c}+c x^2} \, dx,x,x^{n/2}\right )}{\sqrt{b^2-4 a c} n}-\frac{(2 c) \operatorname{Subst}\left (\int \frac{1}{\frac{b}{2}+\frac{1}{2} \sqrt{b^2-4 a c}+c x^2} \, dx,x,x^{n/2}\right )}{\sqrt{b^2-4 a c} n}\\ &=\frac{2 \sqrt{2} \sqrt{c} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x^{n/2}}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{b^2-4 a c} \sqrt{b-\sqrt{b^2-4 a c}} n}-\frac{2 \sqrt{2} \sqrt{c} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x^{n/2}}{\sqrt{b+\sqrt{b^2-4 a c}}}\right )}{\sqrt{b^2-4 a c} \sqrt{b+\sqrt{b^2-4 a c}} n}\\ \end{align*}
Mathematica [A] time = 0.279386, size = 145, normalized size = 0.86 \[ \frac{2 \sqrt{2} \sqrt{c} \left (\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x^{n/2}}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{b-\sqrt{b^2-4 a c}}}-\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x^{n/2}}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{n \sqrt{b^2-4 a c}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.113, size = 114, normalized size = 0.7 \begin{align*} \sum _{{\it \_R}={\it RootOf} \left ( \left ( 16\,{a}^{3}{c}^{2}{n}^{4}-8\,{a}^{2}{b}^{2}c{n}^{4}+a{b}^{4}{n}^{4} \right ){{\it \_Z}}^{4}+ \left ( -4\,abc{n}^{2}+{b}^{3}{n}^{2} \right ){{\it \_Z}}^{2}+c \right ) }{\it \_R}\,\ln \left ({x}^{{\frac{n}{2}}}+ \left ( 4\,{n}^{3}b{a}^{2}-{\frac{{n}^{3}{b}^{3}a}{c}} \right ){{\it \_R}}^{3}+ \left ( 2\,an-{\frac{{b}^{2}n}{c}} \right ){\it \_R} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{\frac{1}{2} \, n - 1}}{c x^{2 \, n} + b x^{n} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.79865, size = 1705, normalized size = 10.09 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{\frac{1}{2} \, n - 1}}{c x^{2 \, n} + b x^{n} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]